package app.species.ANN;

import java.io.Serializable;

// your basic object that the soma, axons and neurons are made from
// may contain some important variables eventually
public abstract class Cell implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1114878625656811416L;
	protected double input, output;
	protected int id;
	private boolean isActive;

	public Cell(int id){

		this.id = id;

		this.input = this.output = 0.0;

		this.isActive = false;

	}

	public boolean isActive(){
		return this.isActive;
	}

	public void setActive(boolean b){
		this.isActive = b;
	}
	
	public double getOutput(){
		return output;
	}
	
	public double getInput(){
		return input;
	}

}
